"""
print command if debug is enabled
"""


from config import DEBUG
from functools import wraps


def print_command(func=None):
    @wraps(func)
    def check(command):
        if DEBUG:
            print(command)
        return func(command)
    return check
